package com.example.lvsuo.service.impl;

import com.example.lvsuo.entity.LogJob;
import com.example.lvsuo.service.ILogTypeService;
import com.example.lvsuo.entity.LogType;
import com.example.lvsuo.mapper.LogTypeMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 日志类型 服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@Service
public class LogTypeServiceImpl extends ServiceImpl<LogTypeMapper, LogType> implements ILogTypeService {
    @Autowired
    LogTypeMapper logTypeMapper;

    /**
     * 查询
     * @return
     */
    @Override
    public List<LogType> getLogType() {
        return logTypeMapper.getLogType();
    }

    /***
     * 根据id查询
     * @param id
     * @return
     */
    @Override
    public List<LogType> getLogTypeId(String id) {
        return logTypeMapper.getLogTypeId(id);
    }
}
